<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>我的课程-作业管理-添加</title>
	<link rel="stylesheet" href="css/left.css">
	<!-- <link rel="stylesheet" href="css/add_job.css"> -->
	<link rel="stylesheet" href="css/add.css">
</head>
<body>
<!-- 加载头部信息 -->
<?php
	include_once("header.php");
?>

<!-- 中间内容 -->
<div class="content clearfloat">
	<!-- 左边内容 -->
	<div class="left_content">
		<ul class="left_nav" id="left_ul">
			<li><a href="index.php" class="li_a">
				<span class="text">
					<?php echo "<img src='images/notice.png' alt='图片' class='left_img1'";?>&nbsp;
					<span>动&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;态</span>
				</span>
				<canvas id="canvas_index1" width="18" height="48"></canvas>	
			</a></li>
			<li><a href="addcourse.php" class="li_a">
				<span class="text">
					<?php echo "<img src='images/course.png' alt='图片' class='left_img2'";?>
					<span>创建课程</span>
				</span>
				<canvas id="canvas_index2" width="18" height="48"></canvas>
			</a></li>
			<li class="active_nav"><a href="mycourse.php" class="li_a">
				<span class="text">
					<?php echo "<img src='images/mycourse.png' alt='图片' class='left_img3'";?>
					<span>我的课程</span>
				</span>
				<canvas id="canvas_index3" width="18" height="48"></canvas>
			</a></li>
			<li><a href="checkbook1.php" class="li_a">
				<span class="text">
					<?php echo "<img src='images/correct.png' alt='图片' class='left_img4'";?>
					<span>批改作业</span>
				</span>
				<canvas id="canvas_index4" width="18" height="48"></canvas>
			</a></li>
			<li><a href="per_setup.php" class="li_a">
				<span class="text">
					<?php echo "<img src='images/setup.png' alt='图片' class='left_img6'";?>
					<span>个人设置</span>
				</span>
				<canvas id="canvas_index6" width="18" height="48"></canvas>
			</a></li>
		</ul>
	</div>

	<!-- 右边内容 -->
	<div class="center_content">
		<ul id="nav">
			<li>
				<a href="mycourse_details.php" class="nav_a">课程介绍</a>	
			</li>
			<li class="active clearfloat">
				<a href="job_management.php" class="nav_a">作业管理</a>
			</li>
		</ul>

		<div class="content_a">
			<a href="" class="btn_a">我的课程</a> >
			<a href="" class="btn_a">这里是我的课程名称</a> >
			<a href="" >作业管理</a> >
			<a href="" >添加</a>
		</div>

		<form action="" method="post" class="content_form">
			<label for="name">作业名称: </label>
			<input type="text" name="name" id="name"><br/><br/>
			<label for="time">完成日期: </label> 2017/12/25 14:30:50 --- 
			<input type="text" name="time" id="time"><br/><br/>
			<label for="text">作业描述: </label><br/>
			<textarea name="text" id="text" cols="30" rows="10"></textarea><br/>

			<input type="submit" name="submit" value="创建" class="btn">
		</form>
	</div>

	<!-- 右侧栏 -->
	<?php
		include_once("right_content.php");
	?>
</div>

<!-- 加载日期  -->
<?php
	include_once("date.php");
?>

<!-- 加载左边导航的样式 -->
<?php
	include_once("nav_style.php");
?>

<script>
function a_style() {
	var ul = document.getElementById("nav");
	var li = ul.children;
	var len = li.length;

	for(var i = 0 ;i < len; i++) {
		(function (num) {
			li[num].onclick = function () {
				for(var j = 0; j < len; j++) {
					if(li[j].className == "active") {
						li[j].className = "";
					}
					li[num].className = "active";
				}
			}
		}(i))
	}
}

</script>

<?php
	echo "<script>a_style();</script>";
?>

<!-- 加载底部信息 -->
<?php
	include_once("footer.php");
?>

</body>
</html>